<template>
  <div class="box">
    <!-- 头部 -->
    <header>
      <Header></Header>
    </header>
    <!-- 路由占位符 -->
    <router-view></router-view>
  </div>
</template>

<script>
import userUtils from '@/utils/userUtil'
import Header from '../tabs/header'
export default {
  name: 'login',
  components: {
    Header
  },
  data () {
    return {
      activeIndex: '',
      isLogin: userUtils.isLogin()
    }
  },
  methods: {
    handleSelect (key, keyPath) {
      console.log(key, keyPath)
    },
  }
}
</script>

<style lang="less" scoped>
.box {
  width: 100%;
  height: 100%;
  background: url("../../assets/imgs/login-bg.jpg") no-repeat;
  background-size: cover;
  overflow: hidden;
}
.el-menu--horizontal > .el-menu-item {
  border-top: 0.125rem solid transparent;
  color: #fff;
  box-sizing: border-box;
}
.el-menu--horizontal > .el-menu-item.is-active {
  border-bottom: 0;
  border-top: 0.125rem solid rgb(255, 83, 66);
  box-sizing: border-box;
}
header {
  position: absolute;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 4.0625rem;
  font-size: 1.125rem;
  z-index: 200;
  .logo {
    flex: 0.7;
    text-align: center;
    line-height: 4.0625rem;
    height: 100%;
    img {
      height: 3.625rem;
      vertical-align: middle;
    }
  }
  .item {
    font-weight: bold;
    text-decoration: none;
    padding: 0 1.25rem;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
  }
  a {
    text-decoration: none;
    box-sizing: border-box;
    color: #fff;
  }
}
.el-menu {
  background-color: transparent;
}
.el-menu-item.is-active {
  background-color: transparent !important;
}
.el-menu-item {
  background-color: rgba(0, 0, 0, 0) !important;
  font-size: 1.125rem;
}
.el-menu-item:hover {
  color: #ff5342 !important;
}
.el-menu.el-menu--horizontal {
  border-bottom: none;
}
.icon-lingdang1 {
  color: #eee;
  line-height: 3.75rem;
}
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}
.username {
  display: inline-block;
  margin-left: 0.625rem;
  font-weight: bold;
  font-size: 1rem;
  color: #333333;
  width: 6.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
